package com.example.cash.craft.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class RewardPointsLogVO implements Serializable {

    @Schema(description = "积分记录ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "关联的订单ID，0=无关联订单")
    private Long orderId;

    @Schema(description = "积分变动（正数为增加，负数为减少）")
    private Integer pointsChange;

    @Schema(description = "积分变动描述")
    private String description;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}